package com.one.blocks.rbac.datascope;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author <a href="mailto:idler41@163.com">linfuxin</a> created by 2022-12-03 10:10:52
 */
@Inherited
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DataScopeJoin {

    public String joinSql() default "inner join iot_camera_bureau icb001 on a.id = icb001.camera_id inner join iot_user_bureau iub001 on icb001.bureau_id = iub001.bureau_id and iub001.user_id = ?";
}
